Public Property Get CloseFlag() As Variant
'
CloseFlag = blnCloseFlag
'
End Property
Public Property Let CloseFlag(ByVal vNewValue As Variant)
'
blnCloseFlag = vNewValue
'
End Property
Next, add the SelectedValue property and enter the code from Listing 12.19.
Listing 12.19. Adding the SelectedValue property.
Public Property Get SelectedValue() As Variant
'
SelectedValue = varSelectValue
'
End Property
Public Property Let SelectedValue(ByVal vNewValue As Variant)
'
varSelectValue = vNewValue
'
End Property
These properties are used to pass information from the completed form back to the control button you built earlier in the project. Save the form and project before continuing.
Now add the code from Listing 12.20 to the Form_Load event. This code refreshes the dialog at startup.
Listing 12.20. Coding the Form_Load event.
Private Sub Form_Load()
'
Me.Caption = "Select a Record"
Data1.Refresh
DBList1.Refresh
'
End Sub